package com.example.shop.service;

import com.example.shop.model.ShopCart;
import com.example.shop.utils.PageBean;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ShopCartService {
    List<ShopCart> getShopCarts(int uId);
    int insertShopCart(ShopCart shopCart);
    int updateShopCart(ShopCart shopCart);
    int deleteShopCart(int id);
    ShopCart getShopCart(int commodityId, int uId);
    PageBean<ShopCart> getShopCart(int pageNo, int pageSize, String search);
}
